<?php
namespace Rest\Controller;

class ToolController extends CommonController {

    public function segment() {
        $data = I('post.');

        $content = v($data,'content');
        verify($content,'notEmpty','分词内容不能为空');

        $field = v($data,'field');

        $wordList = segment($content,$field);

        $this->success($wordList);
    
    }

    public function post() {
    }
}
